package com.example.mtblog.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@AllArgsConstructor
@NoArgsConstructor
@Data
public class UserPrivacy {


    private Integer uid;

    //主页是否可见
    private Boolean isHomepageVisible;

    //发布文章是否可见
    private Boolean isPublishArticleVisible;

    //喜欢文章是否可见
    private Boolean isLikeArticleVisible;

    //收藏文章是否可见
    private Boolean isCollectArticleVisible;

    public void init(UserPrivacy userPrivacy){

        userPrivacy.isHomepageVisible = true;
        userPrivacy.isPublishArticleVisible = true;
        userPrivacy.isLikeArticleVisible = true;
        userPrivacy.isCollectArticleVisible = true;

    }
}


